Restore DataBase

Restore DataBase

am 02.06.2010 05:26:02 von ALEXANDER JOSE

--_4f9cd470-14cd-4f7f-b68a-761cf44eb646_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



=20
psql coon I'm trying to restore a database
that has 60 GB in size=2C where there is a table with 38 million records=
=2C
has raised 18 million records when the restore process fails on a=20
syntax error=2C the backup was made with a file. sql as the best way I can =
do=20
to restore??


Alexander Angel
Venezuela



=20
=20
=20
____________________________________________________________ _____
Invite your mail contacts to join your friends list with Windows Live Space=
s. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=3Dcreate&wx_ url=3D/friends.=
aspx&mkt=3Den-us=

--_4f9cd470-14cd-4f7f-b68a-761cf44eb646_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable






"return Control.invoke('ReadingPane'=2C '_onBodyClick'=2C event)=3B">

-color: rgb(255=2C 255=2C 255)=3B" title=3D"">psql coon I'm trying to resto=
re a database
that has 60 GB in size=2C where there is a table with 38 million records=
=2C
has raised 18 million records when the restore process fails on a=20
syntax error=2C the backup was made
rgb(255=2C 255=2C 255)=3B" title=3D"">with a file. sql as the best way I c=
an do=20
to restore??


Alexander Angel
Venezuela




=20


Invite your mail contacts to join your friend=
s list with Windows Live Spaces. It's easy! om/spacesapi.aspx?wx_action=3Dcreate&wx_url=3D/friends.aspx& mkt=3Den-us' ta=
rget=3D'_new'>Try it!

=

--_4f9cd470-14cd-4f7f-b68a-761cf44eb646_--

Re: Restore DataBase

am 02.06.2010 08:07:27 von Szymon Guz

--0016e6d9a3ba870a8a048805e74f
Content-Type: text/plain; charset=UTF-8

2010/6/2 ALEXANDER JOSE

> psql coon I'm trying to restore a database that has 60 GB in size, where
> there is a table with 38 million records, has raised 18 million records when
> the restore process fails on a syntax error, the backup was made with a
> file. sql as the best way I can do to restore??
>
>
> Alexander Angel
> Venezuela
>


How did you make the backup?


regards
Szymon Guz

--0016e6d9a3ba870a8a048805e74f
Content-Type: text/html; charset=UTF-8



2010/6/2 ALEXANDER JOSE <>








psql coon I'm trying to restore a database
that has 60 GB in size, where there is a table with 38 million records,
has raised 18 million records when the restore process fails on a
syntax error, the backup was made
with a file. sql as the best way I can do
to restore??


Alexander Angel
Venezuela







How did you make the backup?


regards
Szymon Guz


--0016e6d9a3ba870a8a048805e74f--

Re: Restore DataBase

am 02.06.2010 09:17:58 von Andreas Schmitz

hi,

sounds like a plain text backup. your problem, I guess, will be some
constraint issue. I suggest commenting out the constraints in the backup
file before running the restore.

regards

andreas


ALEXANDER JOSE wrote:
> psql coon I'm trying to restore a database that has 60 GB in size,
> where there is a table with 38 million records, has raised 18 million
> records when the restore process fails on a syntax error, the backup
> was made with a file. sql as the best way I can do to restore??
>
>
> Alexander Angel
> Venezuela
>
> ------------------------------------------------------------ ------------
> Invite your mail contacts to join your friends list with Windows Live
> Spaces. It's easy! Try it!
>


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Re: Restore DataBase

am 03.06.2010 07:54:19 von Eric McKeeth

--001636c931e466bb8e048819d6c7
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Jun 1, 2010 at 9:26 PM, ALEXANDER JOSE wrote:

> psql coon I'm trying to restore a database that has 60 GB in size, where
> there is a table with 38 million records, has raised 18 million records when
> the restore process fails on a syntax error, the backup was made with a
> file. sql as the best way I can do to restore??
>
>
It will be easier for people to help if you provide more info such as
postgres version, OS, how the backup was made, exact error message, etc.
But, if you're getting a syntax error, then my best guess would be that
either that you have a corrupt/incomplete backup, or that you're trying to
restore to a different version of postgres than you used to make the backup,
and the backup has syntax which would be valid for the version that made it,
but not for the version you're trying to restore to.

-Eric

--001636c931e466bb8e048819d6c7
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Tue, Jun 1, 2010 at 9:26 PM, ALEXANDER JOSE <=
span dir=3D"ltr"><aangelj@hotmail=
..com
> wrote:
rder-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding=
-left: 1ex;">







psql=
coon I'm trying to restore a database
that has 60 GB in size, where there is a table with 38 million records,
has raised 18 million records when the restore process fails on a=20
syntax error, the backup was made
gb(255, 255, 255);" title=3D"">with a file. sql as the best way I can do=20
to restore??


=
It will be easier for people to help if you provide more info such as postg=
res version, OS, how the backup was made, exact error message, etc. But, if=
you're getting a syntax error, then my best guess would be that either=
that you have a corrupt/incomplete backup, or that you're trying to re=
store to a different version of postgres than you used to make the backup, =
and the backup has syntax which would be valid for the version that made it=
, but not for the version you're trying to restore to.


-Eric


--001636c931e466bb8e048819d6c7--